﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Nop.Web.Models.Common
{
    public class RelatedListModel
    {
        public string No { get; set; }
        public string Name { get; set; }
    }
    public class RelatedModel
    {
        public int key { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string No { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 父Id
        /// </summary>
        public int ParentId { get; set; }
        public string ParentName { get; set; }
        /// <summary>
        /// 启用
        /// </summary>
        public bool Active { get; set; }
        /// <summary>
        /// 是系统默认
        /// </summary>
        public bool IsSystem { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int DisplayOrder { get; set; }
    }
    public class RelatedViewModel
    {
        //public RelatedViewModel() {
        //    this.children = new List<RelatedViewModel>();
        //}
        public int key { get; set; }
        /// <summary>
        /// 编号
        /// </summary>
        public string No { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 父Id
        /// </summary>
        public int ParentId { get; set; }
        public string ParentName { get; set; }
        /// <summary>
        /// 启用
        /// </summary>
        public bool Active { get; set; }
        /// <summary>
        /// 是系统默认
        /// </summary>
        public bool IsSystem { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int DisplayOrder { get; set; }
        public IList<RelatedViewModel> children { get; set; }
    }
}